import 'package:flutter_app/generated/json/base/json_convert_content.dart';
import 'package:flutter_app/bean/list_dynamic_entity.dart';

ListDynamicEntity $ListDynamicEntityFromJson(Map<String, dynamic> json) {
	final ListDynamicEntity listDynamicEntity = ListDynamicEntity();
	final List<ListDynamicDynamicVOList>? dynamicVOList = jsonConvert.convertListNotNull<ListDynamicDynamicVOList>(json['dynamicVOList']);
	if (dynamicVOList != null) {
		listDynamicEntity.dynamicVOList = dynamicVOList;
	}
	final String? type = jsonConvert.convert<String>(json['type']);
	if (type != null) {
		listDynamicEntity.type = type;
	}
	return listDynamicEntity;
}

Map<String, dynamic> $ListDynamicEntityToJson(ListDynamicEntity entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['dynamicVOList'] =  entity.dynamicVOList?.map((v) => v.toJson()).toList();
	data['type'] = entity.type;
	return data;
}

ListDynamicDynamicVOList $ListDynamicDynamicVOListFromJson(Map<String, dynamic> json) {
	final ListDynamicDynamicVOList listDynamicDynamicVOList = ListDynamicDynamicVOList();
	final String? diffHour = jsonConvert.convert<String>(json['diffHour']);
	if (diffHour != null) {
		listDynamicDynamicVOList.diffHour = diffHour;
	}
	final String? id = jsonConvert.convert<String>(json['id']);
	if (id != null) {
		listDynamicDynamicVOList.id = id;
	}
	final String? status = jsonConvert.convert<String>(json['status']);
	if (status != null) {
		listDynamicDynamicVOList.status = status;
	}
	final String? title = jsonConvert.convert<String>(json['title']);
	if (title != null) {
		listDynamicDynamicVOList.title = title;
	}
	final String? type = jsonConvert.convert<String>(json['type']);
	if (type != null) {
		listDynamicDynamicVOList.type = type;
	}
	return listDynamicDynamicVOList;
}

Map<String, dynamic> $ListDynamicDynamicVOListToJson(ListDynamicDynamicVOList entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['diffHour'] = entity.diffHour;
	data['id'] = entity.id;
	data['status'] = entity.status;
	data['title'] = entity.title;
	data['type'] = entity.type;
	return data;
}